﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BackEnd
{
	public class TableView : ICreatable
	{
		public string Name { get; protected set; }
		public List<Column> Columns { get; protected set; }
		public List<Index> Indexes { get; protected set; }
		public List<Trigger> Triggers { get; protected set; }
		public string CreateSQL { get; set; }
		public bool IsReadOnly { get; protected set; }

		public TableView(string name, string createSQL, bool readOnly)
		{
			this.Name = name;
			this.Columns = new List<Column>();
			this.Indexes = new List<Index>();
			this.Triggers = new List<Trigger>();
			this.CreateSQL = createSQL;
			this.IsReadOnly = readOnly;
		}
	}
}